Method and apparatus for editing data used in creating a three-dimensional virtual reality environment

ABSTRACT

Preparation of the script used for making a more interactive world using Java or other language is difficult due to the preparation of the content. In particular, the portion connecting the Java language and VRML is difficult. The present invention uses a new Script Expert. A model editing tool  420  generates graphic data showing the shape etc. of an object and adds sensors for generating events. A template preparation tool  428  prepares a template of a script program compatible with the setting of data input and output between nodes, while the user uses a text editor  426  for editing to prepare the script. The text editor  426  operates in linkage when there is a change in a setting of the data input and output between nodes and changes the substance of the script to make it compatible with the changed setting. A Java compiler  468  complies the script automatically before execution of the content by a browser emulator  460.

TECHNICAL FIELD

The present invention relates to a graphic data generating apparatus, a graphic data generation method, and a medium for the same, more particularly relates to a graphic data generating apparatus, a graphic data generation method, and a medium for the same able to be used for comprehensive editing of a script etc. activated in accordance with an operation of a client (user) with respect to a shape and position of a three-dimensional graphic able to be used for expression of an object in a three-dimensional virtual space and with respect to a displayed three-dimensional image.

More specifically, the present invention relates to a graphic data generating method able to use a script expert to prepare a template of script and thereby automatically compile script by an interactive operation, a graphic data generating apparatus for working the same, and a medium for mediating a program for working the graphic data generating method.

BACKGROUND ART

As a description language capable of comprehensive handling three-dimensional information using the framework of the WWW (World Wide Web) providing various types of information on the Internet, that globally constructed computer network, the VRML (virtual reality modeling language) has been known.

First, an explanation will be given of the historical background up to the development of the VRML.

As an information system able to be used on the Internet, the WWW developed by the Swiss CERN (European Center for Nuclear Research) is known. The WWW was designed to enable text, images, sound, and other multimedia data to be viewed and heard by a hyper text format and asynchronously transfers to personal computers and other terminal equipment information stored in WWW servers based on protocol called HTTP (Hyper Text Transfer Protocol). The WWW is basically comprised of servers and browsers.

A WWW server is comprised of server software known as an HTTP daemon and HTML (Hyper Text Makeup Language) files storing hyper text information. A “daemon” is a program which manages and processes information in the background when working on UNIX.

Hyper text information is expressed by a description language called the HTML. Hyper text is described by HTML by the expression of the logical structure of sentences by format designations known as “tags” surrounded by “<” and “>”. Links with other information are described by link information known as “anchors”. When designating a location of information by anchors, a URL (Uniform Resource Locator) is used.

The protocol for transferring a file described in HTML on a TCP/IP (Transmission Control Protocol/Internet Protocol) network is HTTP. HTTP functions to send a request for transfer of information from a client to a WWW server and transfer hyper text information of an HTML file to the client.

A WWW browser is often used as the environment for uses of the WWW. “Browse” means to freely view. A browser executes the work for inquiring about information to a server in accordance with an operation of a user. A WWW browser is Netscape Navigator (trademark of Netscape Communications Corporation of the U.S.) and other client software. It is possible to use a WWW browser to browse through files, that is, home pages, of WWW servers on the globally expanding Internet, corresponding to a URL, and possible to successively follow back linked home pages to access various sources of information on the WWW—called “net surfing”.

In recent years, the WWW has further expanded. Specifications for description languages for three-dimensional graphics, called VRML, have been formulated enabling description of three-dimensional spaces and setting hyper text links for objects drawn by three-dimensional graphics and enabling successively-access of WWW servers while following back the links. VRML browsers are being developed for displaying three-dimensional spaces described based on such VRML specifications.

Details of VRML are described for example in the reference “VRML o Shiru: 3-Jigen Denno Kukan no Kochiku to Buraujingu (Learn About VRML: Building and Browsing Three-Dimensional Computer Space)”, written by Mark Pesce, translated by Koichi Matsuda, Terunao Kamachi, Shoichi Takeuchai, Yasuaki Honda, Junichi Toshimoto, Masayuki Ishikawa, Ken Miyashita, and Kazuhiro Hara, first edition published Mar. 25, 1996, published by Prentis Hall, ISBN4-931356-37-0 (original work: “VRML: Browsing and Building Cyberspace”, Mark Pesce, 1995 New Readers Publishing, ISBN 1-56205-498-8) and the reference “VRML no Saishin Doko to CyberPassage (Recent Trends in VRML and CyberPassage)”, Koichi Matsuda and Yasuaki Honda, bit (published by Kyoritsu)/1996, Vol. 28, No. 7, pp. 29 to 36, No. 8, pp. 57 to 65, No. 9, pp. 29 to 36, and No. 10, pp. 49 to 58).

The formal and complete specifications in “The Virtual Reality Modeling Language Version 2.0”, ISO/IEC CD 14772, Aug. 4, 1996 are disclosed at the following home page address:

http://www.vrml.org/Specifications/VRML2.0/FINAL/spec/ind ex.html

The Japanese language version is disclosed at the following home page address:

http://www.webcity.co.jp/info/andoh/vrml2.0/spec-jp/index.html

As a VRML 2.0 browser and shared server software, for example, the present applicant, Sony Corporation, has developed and is marketing “Community Place (trademark) Browser/Bureau”. The β-version (test version) can be downloaded from the Internet home page http://vs.sony.co.ip).

In the VRML 2.0, it is possible to describe and express autonomous behavior of an object in a three-dimensional virtual space. When using VRML 2.0 to prepare VRML content where an object moves around in a three-dimensional virtual space, normally the following process of work is undergone. Note that below the set of a VRML file, script file, etc. for realizing behaviors of a series of objects in a single virtual space is called “VRML content”.

Routine for Preparing VRML Content

The general routine for preparing VRML content is described below.

(1) Preparation of Model

The shape, position, etc. of an object (model) arranged in a virtual space are described based on VRML 2.0 to prepare a basic VRML file.

(2) Description of Sensor Node

TouchSensors generating events in the case of click operation by a mouse (pointing operation) on objects in the virtual space, a TimeSensor generating an event when a predetermined time arrives, and other sensor nodes is added to the VRML file.

(3) Description of Routing

The description of the routing for transmission of events generated in accordance with pointing operations with respect to objects to which sensor nodes have been added is added to the VRML file.

(4) Description of Script Node

The description of a script node for transfer of events transmitted by the routing to and from an external script is added to the VRML file.

(5) Preparation of Script File

A script (program) in the Java language (Java is a trademark of Sun Microsystems of the U.S.) for realizing predetermined behavior for objects in the virtual space based on events; transmitted through the script node is described to prepare a script file.

The desired VRML content is prepared by the process of description of the above (1) to (5).

When desiring to prepare VRML content accompanying the autonomous behavior of an object in a virtual space based on VRML 2.0, an existing authoring software, called a modeler, for example, 3D Studio Max (trademark), or other software is used to prepare the shape of the object or animation and output the same in the VRML 2.0 format. When the modeler does not support the VRML 2.0 format, it is necessary to use a converter etc. to convert to the VRML 2.0 format.

Further, descriptions of various sensor nodes etc. defined by the VRML 2.0 are added to the VRML file using a text editor, scripts in the Java language are prepared using a text editor, corresponding script nodes are added, routes are added, etc. repeatedly.

Finally, when confirming the actual operation, a VRML browser compatible with VRML 2.0 is activated and the behavior of the object is confirmed by a click operation by a mouse etc.

This method of preparing VRML content features an extremely large amount of complicated work and remarkably poor work efficiency. For example, when adding a field to a script node, it is necessary to revise both the script file and the VRML file. Further, it is necessary to maintain a match between the two.

When designating routing of an event as well, further, it is necessary to ensure a match of the type of the event (format of data). If the format of description of the event etc. is mistaken, when reading by a VRML browser, a composition error will arise and it is necessary to again revise the file. Further, each time a node is added, re-reading by the VRML browser is necessary, so the work efficiency is extremely poor.

Points have been found in the performance of the interactive operation in the conventional method which should be improved. One example of a defect in the interaction is the trouble and inefficiency of the confirmation operation when preparing a world. FIG. 1 is a flow chart of the routine of a conventional method of preparation of a world. The production of the world is classified the two. In the first, the model is produced, and in the second, the interaction is produced. Details will be discussed later in comparison with embodiments of the present invention, but while confirmation is necessary when preparing a world, in the convention method of preparation shown in FIG. 1, as illustrated at step 108, it is necessary to separately use a VRML browser. That is, each time confirming an object in a three-dimensional space expressed by a revised VRML file, it is necessary to activate a VRML browser and designate reading of the revised VRML file or, even when a VRML browser has already been activated, to designate repeat reading of the revised file. The work efficiency in preparing the VRML content was therefore extremely poor.

Further, script is used for making a more interactive world using Java or another language, but it is known that it is difficult to prepare script due to the preparation of content. In particular, the part connecting the Java language and VRML is difficult.

DISCLOSURE OF THE INVENTION

An object of the present invention is to provide a graphic data generating method overcoming the problem of preparation of script and enabling script to be easily prepared, a graphic data generating apparatus for working the graphic data generating method, and a medium for mediating a program for execution of the graphic data generating method.

In the present invention, to overcome the above problems, a Script Expert has been newly developed. The Script Expert prepares a template of script by interactive operation and enables automatic compilation of script when confirming operation by user operation. As a result, there is no need for input of a character string of commands (command line) for preparing the script. Further, it is possible to greatly shorten the time for the user to prepare content of the three-dimensional virtual space by VRML 2.0.

According to a first aspect of the present invention, there is provided a graphic data generating method including a step of displaying predetermined information in a virtual space in a window of a screen of a display device; a step of inputting script preparation data to prepare a source program for the script for realizing an event generated in response to an operation instruction on an object displayed in a window of the display device; a step of inputting routing data and routing establishing correspondence among nodes including the generated data and the prepared script; a step of responding to an execution instruction and compiling a source program of said prepared script to prepare an object program of said script; and a step of responding to input of the execution instruction data, displaying a graphic indicated by the object in a window, and executing at least an object program of the script corresponding to an object in response to the operation instruction from an operation instructing means with respect to the displayed object.

Preferably, further provision is made of a step of displaying an input image used for input of the image preparation data, script preparation data, and routing data and inputting the data input in accordance with the displayed input image.

More preferably, the source program preparation step includes an input-output value setting step of setting values of input and output of script; a template preparation step of preparing a template of a source program of the script compatible with the set values of the input and output of the script, and a source program editing step of editing the template of the source program of the script prepared to prepare the source program of the desired script.

More preferably, the source program preparation step has a source program modification step of modifying the source program so as to be compatible with the set values of the input and output of the script.

According to a second aspect of the invention, there is provided a graphic data generating apparatus for executing the above graphic data generating method. That is, the graphic data generating apparatus has a display processing means of displaying predetermined information in a virtual space in a window of a screen of a display device; an operation instruction means operating linked with the display device enabling interactive operation between the displayed matter displayed on the display device and a user; a source program preparing means for inputting script preparation data and preparing a source program of a script for realizing an event generated in response to an operation instruction on an object displayed in a window of the display device; a routing means for receiving routing data and routing establishing correspondence among nodes including the generated data and the prepared script; an object program preparing means for responding to an execution instruction from the operation instructing means and compiling a source program of said prepared script to prepare an object program of the script; and a displaying and executing means for responding to input of the execution instruction data from the operation instructing means, displaying a graphic indicated by the object in a window, and executing at least an object program of the script corresponding to an object in response to the operation instruction from an operation instructing means with respect to the displayed object.

According to a third aspect of the present invention, there is provided a medium for mediating a program executing the above graphic data generating method. That is, the medium for mediating the program is a medium for executing a graphic data generating method having a step of displaying predetermined information in a virtual space in a window of a screen of a display device; a step of inputting script preparation data to prepare a source program for the script for realizing an event generated in response to an operation instruction on an object displayed in a window of the display device; a step of inputting routing data and routing establishing correspondence among nodes including the generated data and the prepared script; a step of responding to an execution instruction and compiling a source program of said prepared script to prepare an object program of said script; and a step of responding to input of the execution instruction data, displaying a graphic indicated by the object in a window, and executing at least an object program of the script corresponding to an object in response to the operation instruction from an operation instructing means with respect to the displayed object.

The medium for mediating the program is mediated in a computer system. Alternatively, it is transmitted over a network system.

BRIEF DESCRIPTION OF THE DRAWINGS

The above objects and features and other objects and features of the present invention will become clearer from the following description given with reference to the attached drawings, in which:

FIG. 1 is a flow chart of the method of preparation of VRML content;

FIG. 2 is a view of the configuration of a network system comprehensively handling a three-dimensional virtual space to which a graphic data generating apparatus of the present invention is applied;

FIG. 3 is a view of the configuration of a content preparation software tool of the present invention;

FIG. 4 is a flow chart of the method of preparation of VRML content executed by the content preparation software tool illustrated in FIG. 3;

FIG. 5 is a flow chart illustrating the processing of a basic confirmation operation in the process of preparation of the VRML content illustrated in FIG. 4;

FIG. 6 is a flow chart illustrating the processing of a suitable confirmation operation in the process of preparation of the VRML content illustrated in FIG. 4;

FIG. 7 is a view of the configuration of a computer system in the network shown in FIG. 2;

FIG. 8 is: a view of the configuration of a content preparation software tool according to an embodiment of the content preparation software tool illustrated in FIG. 3;

FIG. 9 shows windows displayed by a graphical interface portion of a content preparation software tool of FIG. 8 in a display device in a computer system;

FIG. 10A to FIG. 10C are enlarged views of the CONDUCTOR window illustrated in FIG. 9;

FIG. 11 is a view of an example of the display of a 3D VIEW window (editing window) illustrated in FIG. 9;

FIG. 12 to FIG. 14 are views of the graphic of POINT OF INTEREST in a window of a screen of a display device;

FIG. 15 is a flow chart of the processing for displaying and setting regions of the sensor node;

FIG. 16 and FIG. 17 are views of examples of display by a PARALLEL VIEW function;

FIG. 18 to FIG. 22 are views of examples of display by an ATTENTION function;

FIG. 23 is a flow chart of the processing of an ATTENTION function;

FIG. 24 is a flow chart of a routing editing processing;

FIG. 25 to FIG. 27 are views of examples of display in routing editing processing;

FIG. 28 shows an example of the display of an object for preparing VRML content;

FIG. 29 is a flow chart of the processing for preparing first VRML content;

FIG. 30 to FIG. 34 show examples of the display in a window when preparing first VRML content;

FIG. 35 is a flow chart of the processing for preparing second VRML content;

FIG. 36 and FIG. 37 show examples of the display in a window when preparing second VRML content;

FIG. 38 to FIG. 44 show examples of the display in a window when preparing second VRML content;

FIG. 45 is a flow chart of the processing for preparing third VRML content; and

FIG. 46 to FIG. 49 show examples of the display in a window when preparing third VRML content.

BEST MODE FOR CARRYING OUT THE INVENTION

Embodiments of the graphic data generating apparatus, graphic data generating method, and medium for mediating a program for executing the graphic data generating method will be explained next.

Network System

FIG. 2 is a view of the configuration of a network system 1 for comprehensively handling a three-dimensional virtual space according to one example of application of the graphic data generating apparatus, graphic data generating method, and medium of the present invention.

The network system 1 is constituted by an in-house network 10, an Internet system 12, an Internet provider 14, an ISDN (integrated services digital network) net 16, and a client (subscriber) system 2 connected to each other.

The network system 1 may have a plurality of in-house networks 10, Internet systems 12, internet providers 14, client systems 2, etc., but for simplification of illustration, in FIG. 2, just one of each of them is illustrated.

The in-house network 10 is constituted by a hard disk drive 100, a server apparatus 102, a LAN (local area network) 104, and a gateway server (GWS) 106.

The Internet system 12 connected to the in-house network 10 is constituted by router devices 120 and 124 and a digital communications line 122.

An Internet provider 14 is provided between the Internet system 12 and the ISDN net 16.

In the network system 1 shown in FIG. 2, the in-house network 10 and the client (subscriber) system 2 are connected through the Internet system 12, the Internet provider 14, and the ISDN net 16. In this specification, the LAN 104, Internet system 12, Internet provider 14, and ISDN net 16 are referred to as the “network”. This network transfers data between the server apparatus 102 and the client system 2.

The client system 2 connected to the ISDN net 16 is constituted by a computer system having a personal computer (PC) 20, a display device (DSP) 24, and an input device (IN) 26. A storage device 28 is connected to the computer system. As the computer system, however, while the display device 24, input device 26, and external storage device 28 connected to the personal computer (PC) 20 constitute part of the computer system, they may be provided externally as well. In the present embodiment, the explanation will be made of the case where the display device 24 and input device 26 constitute part of the computer system, while the external storage device 28 is provided outside the computer system.

Server Apparatus 102

The server apparatus 102 of the in-house network 10 is a server apparatus such as the “Community Place” (trademark) (for example, http://vs.sony.co.jp/) which acquires through the network etc. VRML content, that is, VRML content comprised of a VRML file showing the shape and position of a three-dimensional object described by the user by VRML 2.0 and a script file described by the user by the Java language or other programming language and activated in accordance with an operation by the user on the object, stores the same in the hard disk drive 100, and manages the results of the storage.

Below, the set of the VRML file (extension.wrl), the script file in the Java language (extension.java), etc. will be called the VRML content.

The server device 102 sends the VRML content of the three-dimensional virtual space stored in the hard disk drive 100 to the client system 2 via the server apparatus 102, LAN 104, Internet system 12, Internet provider 14, and ISDN net 165 (hereinafter these communication nodes in the network system 1 will be also simply referred to all together as the “network”) and displays the same on the display device 24.

Further, the server apparatus 102, in response to a request of the client system 2, transfers a content preparation software tool, that is, a program, stored in for example the hard disk drive 100 through the network to the client system 2. Alternatively, it may distribute a content preparation software tool, that is, a program, to the client system 2 in a state stored in a floppy disk 280 or a magneto-optic disk 282.

Explanation of Medium for Program

As the graphic data generation apparatus, graphic data generation method, and medium for the program for executing the method of the present invention, the following explanation will be made mainly of the configuration and operation at the client system 2, but the “medium” in the present invention not only includes a recording medium storing a computer program for realizing the graphic data generation method of the present invention, but does not merely mean a program storing medium and also means a program transmission medium when downloading to the client (subscriber) system 2 described in detail in the following embodiments a computer program through the network system 1 of FIG. 2 for the client system 2 to realize the graphic data generation method of the present invention. The reason is that as clear from the following explanation, when working the graphic data generation method of the present invention, it is possible to realize certain processing at any location without the restrictions of concentration. The present invention can be also realized by a localization.

FIG. 3 is a view of a graphic data generation method and graphic data generation apparatus, in particular a content preparation software tool 3 (Community Place (trademark) Conductor), of the present invention in a client (subscriber) system 2. The content preparation software tool 3 has a graphical user interface (GUI) 31, object manager 32, Java compiler 33, scene graph manager 34, Java VM 34B, purser 34C, HTML browser 35, and backup manager 36.

The graphical user interface portion 31 performs a variety of window displays.

The Java compiler 33, an external program, compiles Java programs. The scene graph manager 34 is a portion common with the browser. The scene graph manager 34A handles the hierarchical structure of the VRML nodes. The purser 34C analyzes the VRML file. The Java VM 34B executes the script described by Java.

The HTML browser 35, an external program, is used for displaying an anchor node or displaying a help file of a VRML node described by the HTML format.

The portion 34 comprised of the scene graph manager 34A, Java VM 34B, and purser 34C may be used together with for example the Community Place (trademark) browser provided by Sony Corporation.

The backup manager 36 is enabled when the “Play” button on the screen of the display device is depressed by a mouse to enter the “Play” mode and starts preparations for backup of the field values. The stored field values are successively reproduced to restore the original screen when the “Stop” button is depressed. That is, the “Conductor” content preparation software tool is designed to enable everything from editing of the world to confirmation of operation. When the “Play” mode is entered by the user depressing the “Play” button, Conductor starts emulation of a browser. In this state, the states of the fields change, for example, an object starts to move, in accordance with interaction from the user. When however the “Stop” button on the screen of the display device is depressed by the mouse to return to the “normal editing mode”, it is necessary to return completely to the “state before depressing the Play” button. What are necessary at this time are backup of the field values and processing for their restoration.

The backup manager 36 operates as follows. The backup manager 36 is enabled and starts preparation for backup of the field values when the “Play” mode is entered. When the field values are changed for the first time due to changes in a moving object etc., the original field values are stored. The field values are stored by the system of successively stacking them (stack system). When the “Stop” button is depressed, the stored values are successively reproduced (the stack is popped) to restore the state of display of the original window.

Like when dividing a file into a plurality of files when preparing a large sized program, it is preferable to divide a file into a plurality of files when a world has become large to a certain extent. The object manager 32 is the portion for managing the consistency in such a case.

The route editor (not shown) is used when defining an event between fields using a route text. In the present invention, a node is designated using the GUI 31, so there is no longer mistaken designation of names. Further, even if the user changes the nodes for a route, the route text can be automatically updated without error while the object manager 32 manages the DEF for each scope.

Script is used to make a more interactive world using Java and other languages, but script is known to be difficult to prepare due to the preparation of content. In particular, the portion connecting the Java language and VRML is difficult. In the present invention, to solve this problem, a Script Expert (not shown), explained in detail later, is provided.

FIG. 4 is a flow chart of the processing by the content preparation software tool 3. In the present invention, the defects of the above mentioned prior art are solved by omitting the manual work and using a GUI 31 to enable the work to be efficiently and automatically performed in whole tools. This will be explained briefly below. As explained above, the content preparation software tool 3 illustrated in FIG. 3 can execute any of the tasks at any portion of the network 1, but in the following, for simplification of the explanation, the case of execution mainly in the client system 2 will be explained.

The substance of the processing of FIG. 4 will be explained first. The processing of the content preparation software tool 3 may be roughly divided into (1) initialization, (2) preparation of a model, and (3) preparation of interaction.

At step 201, for example, model data is downloaded from the hard disk drive 100 to the hard disk drive 214 of the computer system 20. That is, a model described in VRML 2.0 is loaded in the computer system 20 of the client system 2. As the method of loading, it is possible to download the data from any portion of the network system 1 to the computer system 20.

At step 202, the model (object) is edited, for example, the model is rearranged, the attributes are changed, or other editing is performed.

At steps 203 to 207, the interaction is prepared. That is, at step 203, sensors are added, at step 204, a script node is added, at step 205, Java programs are compiled, and at step 207, routing is edited.

At step 208, the operation of the results of the above processing is confirmed by depressing the “Play” button shown in the “Conductor” window (FIG. 10) of the screen of the display device by a mouse. The confirmation operation explained referring to FIG. 1 is performed by activating a browser after the end of the preparation of the VRML content. The operation of step 208 is possible at any time without activating the browser. Details will be given later with reference to FIG. 5 to FIG. 6, but according to the method of the present invention, that is, the content preparation software tool 3, if the user depresses the “Play” button, the editing screen, which is the “3D Perspective View” window (editing window) shown in FIG. 9 etc., that is, is displayed as it is as the substance of the prepared content instead of the display screen of the VRML browser.

Further, the addition of sensors, editing of routing, etc. may be performed by interactive operation by a graphical user interface (GUI) 31 in the content preparation software tool 3 of the present embodiment.

The content preparation software tool 3 is given the additional function called a Script Expert which prepares a template of a script by interactive operation and automatically compiles files when the user confirms the operation by an operation. Therefore, the content preparation software tool of the present embodiment is given the additional function of automatic compilation at the time of confirmation of operation. As a result, the content preparation software tool 3 of the present embodiment eliminates the need for performing this work by input of a character string of commands (command line). By these functions, it is possible to greatly shorten the time for the user to prepare content of the three-dimensional virtual space by VRML 2.0.

In the present invention, the addition of sensors at step 203 can be simply performed by a drag and drop operation.

Further, in the present invention, the editing of the routing at step 207 can be simply performed using a GUI.

Further, in the present invention, there is a function of checking the type of the event even when adding a route using the route editor and therefore it is possible to prevent the user from designating a mistaken route.

In particular, in the present invention, to overcome the disadvantages explained with reference to FIG. 1, as step 208, as explained above and as illustrated in FIG. 5, at any timing and without activating the browser, (1) S211: when the “Play” button provided in the screen of the display device is depressed by the user as the predetermined first operation, (2) S212: the emulator is activated and it is made possible to confirm the operation at that time by the operation of the emulator. (3) S213: After the confirmation, when the “Stop” button provided in the screen of the display device is depressed by the user as the predetermined second operation, the normal editing mode is returned to. Due to this, when adding nodes or making changes in programs for the script nodes simultaneously with normal preparation of VRML content, it is possible to use the browser emulator and simply confirm the operation on the spot by just depressing the “Play” button. If a compilation error occurs as a result, it is possible to easily detect the error, immediately correct the error, and re-compile the files.

In the above confirmation operation, preferably the backup manager 36 is made to operate linked with the browser emulator. That is, during the confirmation operation of step 208, as illustrated in FIG. 6, (1) S221: when the user depresses the “Play” button as the first predetermined operation, (2) S222: the browser emulator operates in the same way as above and the backup manager 36 is enabled and can perform backup. (3) S223: In this state, when for example a moving object starting to move by being clicked is clicked, (4) S224: the backup manager 36 successively stores the field values defining the behavior of motion of the object. (5) S225: If the user depresses the “Stop” button as the second predetermined operation, the confirmation operation ends, but (6) S226: the backup manager 36 successively restores the stored field values and resets the field values of the initial state. This enables restoration of the object in the original state before the confirmation operation. These operations may be achieved by just operation of the “Play” button and “Stop” button, therefore in addition to the improvement of the operability, the processing time can also be shortened.

Client (Subscriber) System 2 and Computer System 20

FIG. 7 is a view of the configuration of the computer system 20 shown in FIG. 2. In FIG. 7, the external storage device 28 illustrated in FIG. 2 is illustrated in detail as the floppy disk (FD) 280 and/or magneto-optical (MO) disk 282, while the input device 26 is illustrated as a keyboard (KB) 260 and/or mouse 262.

In working the invention, the display device 24 may be any color display device suitable for interactive information display and processing linked with a keyboard, mouse, or other data input means, for example, a color CRT display device or color liquid crystal display device. Below, in the specification, as the “display device 24”, the explanation will refer to the case of a color CRT display device or color liquid crystal display device operating linked with a keyboard, mouse, or other data input means.

The computer system 20 is for example a computer designed for multi-media operations and having a communication function connected to for example the ISDN net 16. It is constituted by a CPU 202, a ROM 204, an input interface (IN I/F) 208, a display device 24 controller (DSP-C) 210, a video signal recording RAM (VRAM) 212, a hard disk drive (HDD) 214, a floppy disk drive (FDD) 216, an MO disk drive 218, and a line interface 220 connected via a bus 200.

The CPU 202 performs various operations explained below by operating various control programs stored in the ROM 204 and HDD 214. For example, the CPU 202 displays various image data on the display device 24 through the DSP-C 210 and receives as input the data from the KB 260 or data from the mouse 262 through the input interface 208. The CPU 202 stores the data in a floppy disk 280 serving as the external storage device 28 through the floppy disk drive 216 or reads data from the FD 280 or else stores the data in an MO disk 282 serving as the external storage device 28 through the MO disk drive 218 or reads data from the MO disk 282. The CPU 202 also communicates with the ISDN net 16 through the line interface 220.

The computer system 20 displays on the display device 24 the image of VRML content of the three-dimensional virtual space sent from the server apparatus 102 through the network including the ISDN 16 to display it to the user (client).

The computer system 20 installs the content preparation software tool 3 supplied from the server apparatus 102 via the network or the external storage device 28 in the hard disk drive 214, activates the content preparation software tool 3 in accordance with an operation of the client using the KB 260 or mouse 262 to prepare the VRML content of the three-dimensional virtual space, stores this in the hard disk drive 214, or uploads this via the network or the external storage device 28 (floppy disk 280 and/or MO disk 282) to the server apparatus 102.

Further, the computer system 20 changes the displayed color of an object pointed to or changes the substance of the display of the object in the three-dimensional virtual space in accordance with a pointing operation by the user using the input device 26 to an object displayed on the display device 24.

Display of Three-Dimensional Virtual Space

According to the client system 2 having a computer system 20, since it is possible to change the substance of the display in the display device 24 interactively in accordance with the operation of the user on an object in a three-dimensional virtual space, if the client system 2 is used, it is possible to create a realistic feeling where, like reality, the user itself makes the object move or touches the object to operate it and make it move or make a sound in a three-dimensional virtual space.

Further, the server apparatus 102 obtaining the VRML content of the three-dimensional virtual space from a client system 2 through the network stores the VRML content in the hard disk drive 100 and can disclose it to the subscribers of the Internet through the Internet system 12. When being accessed from a client system 2 through the network, the server apparatus 102 transfers the VRML content to the client system 2 through the network.

The computer system 20 of the client system 2 displays the three-dimensional virtual space based on the VRML content sent from the server apparatus 102 on the display device 24 by a browser.

When preparing VRML content of three-dimensional virtual space closed in the client system 2 and not sharing the VRML content of the three-dimensional virtual space with other users, it is sufficient to display the prepared VRML content as it is on the display device 24 by using the browser. It is not always necessary to transmit the prepared VRML content to the server apparatus 102.

Interaction Display: The user uses the mouse 262 to point to a desired position on the screen displayed on the display device 24 to input operation data for moving an object in a three-dimensional virtual space or operation input data for designating an object in a three-dimensional virtual space. The computer system 20 modifies the content of the three-dimensional virtual space in accordance with the operation data and uses the VRML browser to display the same on the display device 24.

Preferred Embodiments

Below, an explanation will be made of preferred embodiments of the present invention.

As explained above, in the past, interaction preparation work such as the addition of a sensor to the graphic data (VMRL file) of an object and routing was manually carried out by the user (client) using the text editor function, so careless mistakes easily occur. Further, it cannot be learned whether or not the result of the interaction preparation work is correct until the confirmation using the VRML browser shown at step 108 in FIG. 1, therefore it is necessary to activate the VRML browser for confirmation whenever modifying the interaction program, so the work efficiency is low and time is taken. This embodiment of the present invention was made so as to link up the operation of the model preparation and the operation of the interaction preparation editor so as to be able to comprehensively perform this work and so as to be able to perform the preparation work of content in the three-dimensional virtual space with a high efficiency and easily in a short time.

FIG. 8 is a view of the configuration of the content preparation software tool 4 shown as an embodiment of the content preparation software tool 3 illustrated in FIG. 3. To perform the model preparation work and the interaction preparation work comprehensively and linked with each other, the content preparation software tool 4 comprises a graphical user interface (GUI) 40, an editing tool 42, a scene graph data base (SGDB) 44, a working tool 46, a script preparation unit 47, and a VRML browser 308.

The editing tool 42 is constituted by a model editing tool 420, a routing editing tool 422, a scene graph editing tool 424, a text editor 426, and a template preparation tool 428.

The working tool 46 is constituted by a browser emulator 460, a file input/output unit 462, a file scope management unit 464, and a backup restore unit 466.

The script preparation unit 47 is constituted by a Java emulator 470, a Java debugger 472, and a Java compiler 474.

The content preparation software tool 4 is for example stored in a hard disk drive 100 and input through the network system 1 or is stored in the network or an external storage device 28 (floppy disk 280 or MO disk 282) and input from the external storage device 28 to the computer system 20 and installed and used in the hard disk drive 214. That is, in the present embodiment, the example is explained of the case where the content preparation software tool 4 is realized in the computer system 20.

The constituent parts of the content preparation software tool 4 will be explained below.

Graphical User Interface (GUI) 40

The graphical user interface (GUI) 40 corresponds to the graphical user interface (GUI) 31 of FIG. 3 and displays an image used for the input of various data used for the preparation of VRML content of the three-dimensional virtual space through the PC 20 on the display device 24 in the form of a window.

FIG. 9 is a view of a GUI screen of a first embodiment displayed by the GUI 40 on the display device 24. The GUI screen illustrated in FIG. 9 has a “Conductor” window, “3D Perspective View” window, “Parallel View” window, “Resource Library” window, “Scene Graph” window, “World Info” window, “Appearance” window, “Route” window, “Attribute” window, “Script Expert” window (not shown), and “Script Editor” window.

(1) The “Conductor” window is used for management of the Conductor as a whole.

(2) The “3D Perspective View” window is the portion for displaying an image three-dimensionally. In the following, the word is simplified as “3D window” for convenience.

(3) The “Parallel View” window is the portion for displaying an image by a parallel projection.

(4) The “Resource Library” window is the portion for managing the library.

(5) The “Scene Graph” window is the portion for displaying the hierarchical tree structure of worlds.

(6) The “World Info” window is the portion for setting the attributes of a world.

(7) The “Appearance” window is the portion for setting the color and texture of an object.

(8) The “Route” window is the portion for routing an event.

(9) The “Attribute” window is the portion for setting the attributes of the node and the name of the node.

(10) The “Script Expert” window is the portion for preparing a template of a script.

(11) The “Script Editor” window is the portion of the text editor for editing a Java file.

FIG. 10A is an enlarged view of the illustrated “Conductor” window, and FIG. 10B and FIG. 10C are enlarged views of FIG. 10A. The “Conductor” window is a window for managing the Conductor as a whole. By using the “Conductor” window, it is possible to newly prepare, read in, store, execute, and stop a world, switch the mouse mode, add or delete an object, etc.

(a) By selecting the “New” in the file menu, it is possible to newly prepare a world.

(b) To read a world from a file, the “Open” button is depressed or “Open” is selected from the file menu.

(c) To store a world in a file, the “Save” button is depressed or “Save” is selected from the file menu.

(d) To confirm the operation of the world, the “Play” button is depressed.

(e) By depressing the “Pause” button during play, the play is stopped once. By depressing the “Pause” button again or depressing the “Play” button, the play is restarted. The conductor includes a mouse mode illustrated in FIG. 10B as an enlarged view.

(f) “Navigate (viewpoint motion)” is used when moving the viewpoint in the “2D/3D view” window.

(g) “Move” is used when moving the object.

(h) “Rotate” is used when rotating the object.

(i) “Scale” is used when changing the scale of the object.

Further, in the Conductor, a Primitive Bar illustrated enlarged in FIG. 10C is provided. When adding a primitive object like a box or cone, the object desired to be added is selected at the Primitive Bar and the “3D View” window is clicked. A “Sensor” is also provided in the Primitive Bar.

The GUI 40 receives the operation input data input by the user using the mouse 262 of the input device 26 to depress various buttons in a window displayed on the display device 24 or using the keyboard 260 and provides the required operation data to the tools of the editing tool 42 and the scene graph data base 44. That is, the GUI 40 provides a GUI environment to the user.

The GUI 40 receives the display output data from the editing tool 42 and the scene graph data base 44 and displays the received data in a predetermined window of the display device 24. The constituent parts of the editing tool 42, scene graph data base 44, and working tools 46 are activated in accordance with the operation data input to the GUI 40 and performs processing based on the operation data provided from the GUI 40.

VRML Browser 308

The VRML browser 308 confirms the final substance of the VRML content prepared in the computer system 20 and displays the VRML content acquired from the server apparatus 102 and in addition displays a help file linked with the operation of the constituent parts of the GUI 40 to the working tool 46. As the VRML browser 308 for example, it is possible to use the Community Place (trademark) browser provided by Sony Corporation. The Community Place browser will be explained as an example below.

Editing Tool 42

The editing tool 42, overall, provides the user with the functions necessary for the preparation of graphic data of an object in a three-dimensional virtual space and an interaction program. Below, the parts of the editing tool 42 will be explained.

Model Editing Tool 420

The processing functions of the model editing tool 420 will be listed below:

(1) The model editing tool 420 prepares graphic data indicating an attribute such as the size and color (shape) of the object, its position, and operation by using the data for the model preparation input by an operation of the user with respect to a model editing use window displayed on the display device 24.

(2) The model editing tool 420 outputs the prepared graphic data (attribute of object) to the scene graph data base 44.

(3) The model editing tool 420 three-dimensionally displays this at a predetermined position of the model editing use window on the display device 24 via the GUI 40.

(4) The model editing tool 420 may also edit the graphic data read from the hard disk drive 214.

(5) The model editing tool 420 may also edit the graphic data read from a floppy disk 280 through a floppy disk drive 216 or from an MO disk 282 through an MO disk drive device 218.

(6) The model editing tool 420 may also edit the graphic data downloaded from the network to the computer system 20.

The model editing tool 420 having the above various functions executes the functions characterizing the present invention as explained below:

a. Object Display Function

Processing for rotation (by “Rotate” operation of “Conductor” window), motion (by “Move” operation of “Conductor” window), navigation (by “Navigate” operation of “Conductor” window), and scaling (by “Scale” operation of “Conductor” window) of object for viewing object from different viewpoints.

b. Object Scaling Function

The “Scale” of the “Conductor” window is used.

c. Sensor Node Region Display and Setting Function

Operates linked with the browser emulator 460.

d. Parallel View Function

f. Attention Function

Routing Editing Tool 422

The routing editing tool 422 performs the routing editing for establishing correspondence between the graphic data of the object named in the current scope (VRML file to be edited) and script and other nodes. Note that, at the time of routing, it is necessary to make the format of the field values of the nodes of the origination of routing and the destination of the routing match, for example, SFBool (Boolean value showing true or false).

Note that details of the routing editing processing using the routing editing tool 422 will be described later as the setting of the format of the input data.

Scene Graph Editing Tool 424

In VRML, it is possible to arrange the nodes hierarchically. The scene graph editing tool 424 edits the hierarchical structure of the objects and invisible nodes (script nodes etc.) As the hierarchical structure of the nodes, for example, a subnode F1 showing the leaves (VRML file), a subnode F2 showing the branches (VRML file), a subnode F3 showing the trunk (VRML file), and a subnode F4 showing the roots (VRML file) comprise hierarchically a main node F5 showing the tree as a whole (VRML file).

Text Editor 426

The text editor 426 has an editor function of a programming language suited to the preparation of a script of the Java language etc., prepares a source program of the script, and, at the same time, automatically adds, deletes, or modifies the variables linked with the editing work on the script node.

Template Preparation Tool 428

The template preparation tool 428 is a tool used for the convenience of the user. It operates linked with the text editor 426, prepares a program (template) which becomes the prototype of the script by an interactive manner in accordance with the operation of the user with respect to a “Script Expert” window of the display device 24, and outputs; the same to the text editor 426. The user can easily prepare a script by modifying according to need a source program (template of script) which is provided by the template preparation tool 428 and has been already completed to a certain extent.

Scene Graph Data Base (SGDB) 44

The SGDB 44 stores the data prepared by tools of the editing tool 42 in the RAM 206 of the computer 20, manages the stored data, and supplies the stored data immediately in accordance with requests of the constituent parts of the editing tool 42 and the working tool 46.

Working Tool 46

The working tool 46 provides to the client the functions required for the VRML content preparation work such as the confirmation of the prepared content, confirmation of the operation of the script, and the recording and reproduction of the data with respect to the input data 26. Below, an explanation will be given of the tools of the working tool 46.

Browser Emulator 460

The browser emulator 460 emulates the operation of the VRML browser 308 and provides the user with the same VRML content as in the case of use of the VRML browser 308. Therefore, for example, the browser emulator 460 is used when the user confirms the operation of the prepared VRML content.

The browser emulator 460 is activated in accordance with the depression of the “Play” button displayed in the “Conductor” window of the display device 24 or is activated by the depression of the “Play” button provided on the keyboard 260, stores the result of the emulation of the VRML content in the scene graph data base 44, displays the resultant VRML content in a “3D View” window (editing window) shown in FIG. 9, and modifies the substance of the display in accordance with an operation of the user. The browser emulator 460 stops operating in accordance with the depression of the “Stop” button displayed in the “Conductor” window. The GUI 40 displays the original editing use VRML content when the operation of the browser emulator 460 is stopped.

Note that in the confirmation of operation using the browser emulator 460, it is preferable that the changes of the field values arising due to motion of the moving object be successively stored and held, then, along with the end of the browser emulator 460 in accordance with the “Stop” button, the later explained backup manager 466 be simultaneously operated with the browser emulator 460 to restore the original state of display of the object.

File Input/Output Unit 462

The file input/output unit 462 records the graphic data of the VRML content [VRML file (extension .wrl)], script (extension java), texture file (extension .bmp, .jpg, .mgif) and the sound file (extension .wav, .mod) stored in the scene graph data base 44 on a hard disk drive 214, floppy disk 280, or MO disk 282 of a computer system 20. Further, the file input/output unit 462 outputs the various data of the VRML content read by the hard disk drive 214 etc. to the scene graph data base 44.

File Scope Management Unit 464

In VRML, one scope (range where name and routing attached to the node are valid) is given for every file of the graphic data (extension .wrl), and the node names and routings are managed in units of scopes. The file scope management unit 464 manages the node names in the scene graph data base 44, automatically prepares the node names, searches for the nodes, and propagates modifications with respect to the graphic data file to all of the nodes referred to whenever referring to a plurality of graphic data files with the same nodes.

Backup Manager 466

The backup manager 466 corresponds to the backup manager 36 of FIG. 3. If the browser emulator 460 activated by the “Play” button when confirming the substance of the VRML content displays a scene which can be interactively operated, the state of the nodes changes in accordance with the operation by the user, so the field values of the nodes en d up changing and the original scene can no longer can be displayed unless being processed in some way. For this reason, the backup manager 466 receives and stores the initial states of the field values of the nodes (as field values) of the scene which is displayed at first in the “3D View” window (three-dimensional virtual space generated from the VRML file) from the scene graph data base 44 when the browser emulator 460 is activated in accordance with depression of the “Play” button of the “Conductor” window.

Further, the browser emulator 460 outputs the stored field values of the nodes to the scene graph data base 44 when the browser emulator 460 stops operating in accordance with depression of the “Stop” button of the “Conductor” window of the display device 24.

Due to this, the GUI 40 displays the original three-dimensional virtual space in the “3D View” window of the display device 24 based on the field values of the initial values of the nodes input to the scene graph data base 44.

Script Preparation Unit 47

The script preparation unit 47 has the functions of compiling, confirming the operation, and debugging the script prepared by the user using the text editor 426.

Java Compiler 474

The Java compiler 474 compiles source programs of the script of the Java language stored in the scene graph data base (SGDB) 44 to prepare the object program and outputs the same to the SGDB 44. In this embodiment, when the “Play” button of the “Conductor” window is depressed, the Java compiler 474 can automatically compile the source programs of the script, that is, the files having “.java” as extensions, to automatically prepare a file having “.class” as an extension.

Java Emulator 470 and Java Debugger 472

The Java emulator 470 and the Java debugger 472 operate as the interpreter of a program described by the Java language and are used by the user for confirming the operation and debugging the script program. That is, the Java emulator 470 emulates the operation of the object program of the script stored in the scene graph data base (SGDB) 44, and the Java debugger 472 outputs the state of the Java emulator 470 at the emulation operation and the generated error to the SGDB 44.

Characteristic Functions of Content Preparation Software Tool 4

Below, an explanation will be given of the substance of the processing characterizing the content preparation software tool 4 of the present embodiment.

Operation Confirmation Function and Backup Management Function (Browser Emulator 460, Backup Manager 466)

As explained referring to FIG. 4 to FIG. 6, when the user depresses the “Play” button displayed in the “Conductor” window in the screen of the display device 24 by the mouse 262 (FIG. 5, S301, FIG. 6, S311), the browser emulator 460 analyzes the VRML content prepared up to this point of time and displays it on the display device 24. Preferably, as illustrated in FIG. 6, the backup manager 466 also operates simultaneously and becomes able to back up field values. The backup manager 466 successively stores the field values of the nodes expressing a moving object when a moving object etc. is clicked (FIG. 6, S223) (S224). Further, when the “Stop” button is depressed (FIG. 6, S225), the normal editing mode is returned to and the backup manager 466 restores the field values (FIG. 6, S226).

That is, when the state of the VRML content at the time of starting the confirmation of operation is stored by the backup manager 466, the user depresses the “Stop” button displayed in the “Conductor” window in the screen of the display device 24 by the mouse 262, and the browser emulator 460 stops executing the VRML content, it is possible to return the VRML content to the field values at the time of starting the confirmation of operation and return the substance of the display of the object (model) of the window to that at the start of confirmation of operation.

By this operation confirmation and backup management function, the trouble of once storing the prepared VRML content in the hard disk drive 214 etc. and then activating the VRML browse to confirm the operation like in the prior art described with reference to FIG. 1 is unnecessary. In addition, the user can confirm the operation of the content prepared by the work up to then at any time during the VRML content preparation work.

File Automatic Preparation Function (Java Compiler 474)

When the user depresses the “Play” button of the “Conductor” window for confirmation of the substance of the VRML content, the Java compiler 474 automatically compiles source programs of the script, for example, files having “.java” as the extension, to automatically prepare an object program having “.class” as an extension for example.

Script Program Preparation and Debugging Function (Text Editor 426)

The user can use the text editor 426 to prepare a source program of the script by the Java language or other program language suited to the script preparation and compile the source programs prepared by using the Java compiler 474 to prepare the object program.

This object program is also executed when confirming the operation by the browser emulator 460 in addition to when operating the VRML content by the VRML browser 308.

Further, when adding a debug code to the source program and executing the same at the Java emulator 470, the Java debugger 472 displays the value of the input/output of the script etc. and enables the debugging work of the script.

Template Automatic Preparation Function (Text Editor 426)

When the user sets the values of the input/output of the script node by an interactive manner, the template preparation tool 428 prepares a template (template) of the source program of the script suited to this setting. The user can use the text editor 426 to add the required modifications to the template and thereby prepare the source program of the script for realizing the desired event. By this function, the user can eliminate the trouble of preparing all source programs of the script by the editor and in addition can prevent occurrence of simple coding mistakes.

Object Display Function (Model Editing Tool 420)

The model editing tool 420 enables normal display and display from different viewpoints.

FIG. 11 is a view of an example of an object displayed in the “3D View” window of a GUI screen of the display device 24.

The model editing tool 420 displays a three-dimensional perspective projection view (3D perspective view) of the object indicated by the prepared graphic data in the “3D View” window in the GUI screen (FIG. 9). Below, this will be called the “3D View” window. In this state, if the user clicks and selects an object in the “3D View” window and clicks and selects one of a “Rotate” button, “Move”, “Navigate”, or “Scale” button displayed in the “Conductor” window of the GUI screen shown in FIG. 10A to change the rotation, motion, or viewpoint motion operation mode and further if the user depresses the left button of the mouse 262 and drags on the inside of the “3D View” window or clicks on it by the left button of the mouse 262, the model editing tool 420 displays an image (object) obtained by rotating or moving the selected object (model) on the display device 24 in accordance with the mouse mode (rotation, motion) and the operation of the user with respect to the “3D View” window. When the user selects “Navigate (viewpoint motion)” as the operation mode, the model editing tool 420 uses the position in the “3D View” window clicked by the user as the viewpoint and displays the image when viewing the selected object from this viewpoint. Therefore, according to the above processing of the model editing tool 420, it is possible to view the object from various viewpoints. That is, by using this function, it is possible for the user to view the object from various viewpoints.

Note that when viewing an object from these different viewpoints, it is preferable in terms of the simplicity of the operability that the object concerned be positioned at the center of the window. Therefore, in the present embodiment, in the processing for changing the viewpoint, the object concerned is automatically made to move to the center of the window.

Further, there is a POI (point of interest) mode in the operation modes of the mouse 262 as shown in FIG. 12. When the user selects the object (model: cone) in the “3D View” window by pointing by the mouse 262, the model editing tool 420 matches the viewpoint to the selected object (model) and displays the same at the center of the “3D View” window as shown in FIG. 11 and FIG. 14.

Scalinq Function of Object (Model Editing Tool 420)

If making the operation mode of the mouse 262 the “scale” in the “Conductor” window shown in FIG. 10A and, for example, the user moves the cursor while depressing a predetermined button of the mouse 262 or inputting an operation for instructing a modification of the size of the object or data showing the size after the modification from the keyboard 260, the model editing tool 420 modifies the dimensions (size) of the object in accordance with the motion of the cursor and displays the same. When the user releases the button of the mouse 262, the model editing tool 420 finally sets the size of the model and modifies the content of the graphic data of the object so as to display the object of the size at the time of the final setting in the three-dimensional virtual space.

Note that it is possible for the user to combine the modification of the mouse mode and the operation of the mouse 262 to make for example the routing editing tool 422 rotate and move the object and also enlarge (reduce) and display the changed image in the “3D View” window. That is, this processing is processing effective when viewing an object from different viewpoints.

Further, if the user for example releases the predetermined button of the mouse 262 or performs another operation for instructing modification of the graphic data, the model. editing tool 420 modifies the content of the graphic data of the object (model) in accordance with the object displayed on the display device 24.

Region Display and Setting Function of Sensor Node (Model Editing Tool 420 and Browser Emulator 460)

A sensor is provided in the Primitive Bar illustrated in FIG. 10A and FIG. 10C for generating an event when the user clicks and points to an object in a virtual space displayed in a window of the screen of the display device 24. When the sensor generates an event, script routed to the sensor is executed, and the cursor moves outside the region (boundary box) of the sensor node, the script stops being executed.

The sensor node region display and setting function is a function for confirming and modifying the range of a valid region in a touch sensor given to an object for generating an event in accordance with an operation by the mouse 262 etc., a sound node outputting a sound in accordance with an operation of the mouse 262 etc., or other three-dimensional virtual space.

An explanation will be made of the sensor node region display and setting function referring to FIG. 15.

S301: The user clicks on an object in the “3D View” window using the mouse 262.

S302: The model editing tool 420 operates in response to the above operation of the user. The model editing tool 420 selects the clicked object and causes the bounding box surrounding the selected object to blink.

S303: Further, the user clicks on the “Sensor” tab of the “Conductor” window in the menu screen to designate for example a touch sensor (TouchSensor) or the like.

S304: The model editing tool 420 adds a touch sensor etc. to the object in accordance with the operation of the user.

In this initial stage, the range indicated by the bounding box indicating the selection of the object becomes the range of the valid region of the touch etc.

S305: Further, the user inputs a command for instructing a modification of the range of the valid region of a sensor from the keyboard 260 and data showing the range of the valid region after the modification or uses the mouse 262 to point to the range of the valid region after the modification.

S306: The model editing tool 420 modifies the range of the valid region of the sensor etc. and displays the range of the valid region of the sensor etc. after the change by the bounding box in accordance with the operation of the user. Note, in the following embodiments showing as the examples, the shape of the bounding line is represented as the box-like shape (i.e., the bounding box), but, the shape of the bounding line is not limited to the bounding box-like shape, for mediating-out the embodiments of the present invention.

The display function and scaling function mentioned above are possible also with respect to the following line (the bounding box). The user can make the model editing tool 420 perform rotation, motion, and enlarged or reduced display of the bounding box by the above operation. The model editing tool 420 sets the range defined by the bounding box modified by these operations as the range of the valid region of the sensor etc. after modification.

S307: Further, the user depresses the “Play” button displayed in the “Conductor” window by the mouse 262 for confirming the substance after the modification.

S308: The browser emulator 460 operates in response to the operation of the user. The browser emulator 460 executes the operation for analyzing and displaying the content. Note that preferably, as explained in the above section “Confirmation Operation”, the backup manager 466 is also activated simultaneously with the browser emulator 460 so as to enable storage and restoration of the field values due to a moving object while confirming the VRML content by the browser emulator 460.

S309, S310: In the state with the browser emulator 460 operating, for example if the user moves the cursor of the mouse 262 into the bounding box, the sensor generates the event and the script routed to the sensor is executed. If moving the cursor to the outside of the bounding box, the execution of the script is stopped.

S311: The execution of the VRML content by the browser emulator 460 is stopped by the user depressing the “Stop” button displayed in the “Conductor” window to return the operation of the content preparation software tool 4 to the preparation mode.

Parallel View Function (Model Editing Tool 420)

FIG. 16 is a view of a pop-up menu displayed in the “3D View” window of the display device 24. FIG. 17 is a view of the parallel view function.

If the user clicks on a predetermined button of the mouse 262 (right button of mouse) in the “3D View” window in a state where the browser emulator 460 is stopped, as shown in FIG. 16, the model editing tool 420 displays the pop-up menu in the “3D View” window. If the user selects one item from the pop-up menu, the model editing tool 420 two-dimensionally displays a side view of the object, a top view, or a view by a wire frame in the “Parallel View” window in the menu screen of the display device 24.

Attention Function (Model Editing Tool 420)

The attention function is a function used for confirming the shape of an object displayed in the “3D View” window. It arranges and displays objects as the user sees them from a viewpoint designated in the content preparation software tool 4 in the three-dimensional virtual space around one among the one or more objects selected by the user by the mouse 262 in the “3D View” window.

The model editing tool 420 displays one or more objects prepared in the “3D View Window” arranged in a three-dimensional virtual space.

As the menu screen displayed on the display device 24, that illustrated in FIG. 18 and FIG. 19 is shown. FIG. 20 to FIG. 22 are views of objects displayed in the “3D View” window as first to third examples showing the attention function. The objects shown in FIG. 18 to FIG. 19 are cones, but the objects displayed in FIG. 20 to FIG. 22 are embellished cones.

The attention function will be explained with reference to the flow chart of FIG. 23.

S321: The user clicks the “Navigate” button by the mouse 262 in the “Conductor” window as shown in FIG. 18 to enter the viewpoint motion (Navigate) mode.

S322: The user clicks on and selects a conical object by the left button of the mouse 262 as shown in FIG. 18 or FIG. 20 in a “3D View” window displaying for example the conical object shown in FIG. 18 or the conical object and the embellished cylindrical object shown in FIG. 20. The model editing tool 420 surrounds the selected conical object by the bounding box to indicate that it has been selected.

S323, S324: The user selects “Attention On” of the pop-up menu displayed by clicking the right button of the mouse 262 as shown in FIG. 18. Due to this, the model editing tool 42, as shown in FIG. 19 or FIG. 21, changes the background of the viewpoint position display panel to yellow and changes the direction of the line of sight so that the selected object is at the center of the “3D View” window. The position of the viewpoint does not change, however, so the distance to the object remains the same.

S325: When the user depresses the left button of the mouse 262 and drags around the object, as illustrated in FIG. 22, the position of the viewpoint and the direction of the line of sight of the object change accordingly, so it is possible to view the object from various directions. That is, the model editing tool 420 changes the substance of the display of the “3D View” window in accordance with the designation of the user to an image of the conical object and cylindrical object as seen when using the position designated in the three-dimensional virtual space as the viewpoint. In this way, by using the attention function, the user can view not only the object itself rotated, but also the entire scene actually displayed in the “3D View” window rotated in the three-dimensional virtual space and therefore can easily obtain a grasp of the entire image of the object.

S326: When finishing viewing, the user, as shown in FIG. 19, selects “Attention OFF” in the pop-up menu. By this, the attention function of the model editing tool 420 is ended.

Routing Editing Function: Setting of Type of Input Data (Routing Editing Tool 422)

In VRML 2.0, it is possible to define the transfer of events between fields of the nodes by the route text such as the following:

ROUTE NODE1.field1 TO NODE2.field2

In this example, it is defined to send an event to a field given the field name (eventOut) of “field1” of the node given the node name (NodeName) of “NODE1”. In this route text, it is necessary that the data type (Data Type) preset for the file name (eventOut) of the side outputting the event and the data type (Data Type) preset for the file name (eventOut) of the side inputting the event match.

When the user selects the field names of nodes on the side inputting an event, the routing editing function displays just field names matching the data type preset for the field name of the node of the side outputting the already selected event as a pull down list (drop down list) in the ComboBox. By presenting to the user just the field names for which routing is possible in this way, the user can avoid the problem of describing mistaken route text and therefore the work of the describing the routing is made easier for the user.

The routing editing function will be further explained with reference to FIG. 24 and FIG. 25 to FIG. 27.

FIG. 24 is a flow chart of the processing of the routing editing function.

FIG. 25 to FIG. 27 are views of the “Route” window showing an example of the routing editing function.

The routing editing function, in other words, the processing for setting the type which may be input, will be explained with reference to FIG. 24. The following processing is executed by interactive manner of the routing editing tool 422 with the user.

S331: The “Route” window is opened by the user and the routing editing tool 422 judges if the mouse has been operated to display the pull down list (drop down list) of the node names (NodeName) or their field names (eventOut) of the upper side outputting events.

S332: The routing editing tool 422 extracts the node names (NodeName) or their field names (eventOut) of the side outputting events which can be selected and displays the same as a pull down list (also called a ComboBox).

S333: “TS1” for example is displayed by the routing editing tool 422 as the node name (NodeName) of the side outputting the event selected by the operation of the user to select from the menu using the mouse and “isActive” for example is displayed by the routing editing tool 422 as the field name (eventOut) from the pull down list displayed as shown in FIG. 25. The data type (Date Type) preset for the selected field name, for example SFBool (Boolean value showing true or false, taking one of value of FALSE (0) or TRUE (1)), is displayed as reference in the right adjoining region of the field name (eventOut) by the routing editing tool 422.

S334: Whether or not there has been a mouse operation by the user for displaying the pull down list of the node names (NodeName) of the lower side inputting the event is judged by the routing editing tool 422.

S335: As shown in FIG. 26, for example, “PL1” and “TS1” are displayed by the routing editing tool 422 in the pull down list as node names (NodeName) of the input side of the event which may be selected.

S336: The node name (NodeName) of the side inputting the event selected by the operation of the user to select from the menu using the mouse 262 is displayed by the routing editing tool 422 from the pull down list shown in FIG. 26.

S337: Whether or not there has been a mouse operation by the user for displaying the pull down list of the field names (eventIn) of the lower side inputting the event is judged by the routing editing tool 422.

S338: As shown in FIG. 27, just the field names (eventOut) of the side inputting the event which can be selected are displayed in a pull down list by the routing editing tool 422. In this case, only the field names named “on”, that is, the field names which match the data type preset for the field name of the node of the side outputting the event already selected by the user (in this case, which match SFBool), are displayed in the pull down list by the routing editing tool 422.

S339: The field name (eventOut) of the node of the side inputting the event selected by the menu selection operation by the mouse from the pull down list shown in FIG. 27 is displayed by the routing editing tool 422 and the route text corresponding to the node names and the field names for transferring the event selected by the above menu operation is generated at the routing editing tool 422.

In this way, according to the routing editing function, since just the file names of the nodes matching the type of the data of the event to be transferred between the fields of the nodes are displayed to the user, the user can select one of the file names displayed to set the type of the routing. Therefore, it becomes easy to set the type of data of the routing and mismatches of the types of data between nodes due to careless error etc. and other problems can be prevented.

Routing is deleted by selecting the routing desired to be deleted and then depressing the “Delete” button. The routing editing tool 422 deletes the routing concerned in accordance with this operation.

Script Editing Function (Text Editor 426)

When the user modifies the value of the input/output of the script node (“eventIn”, “eventOut), the text editor 426 automatically modifies the source program of the script corresponding to the script node so as to be compatible with the value of the input/output after the modification.

File Scope Function (Scene Graph Editing Tool 424)

When the user selects the VRML file to be edited in the “Conductor” window etc. of the menu screen of the display device 24, the scene graph editing tool 424 displays the nodes referred to by the selected VRML file to be edited in the “Scene Graph” window in the form of for example a hierarchical tree. The set of nodes referred to by the VRML file to be edited in this way will also be referred to as a “file scope”.

The scene graph editing tool 424 limits the nodes for routing, script preparation, and other editing to the file scope displayed in the “Scene Graph” window. Further, the content of the file scope and the nodes which may be edited are changed to the nodes referred to by the VRML file after modification in accordance with modification by the user of the VRML file to be edited.

Note that the script editing function is valid throughout the nodes in the same VRML file (in file scale). When the user modifies the value of the input/output of the script node in the same VRML file (“eventIn”, “eventOut), the text editor 426 automatically changes the source programs of the script corresponding to the script node in the same VRML file (displayed in the same file scope) to be compatible with the value of the input/output after the modification so as to maintain the match of the descriptions between the script nodes (Inline management function). Further, in the VRML file, the name of the node must be unique, therefore the text editor 426 automatically changes the node name so that the name of the copied and pasted node becomes unique in the same VRML file so as to avoid overlapping of the node name (naming function at paste).

Basic Method of Preparation of VRML Content

An explanation will next be given of an example of the preparation of VRML content by the content preparation software tool 4.

FIG. 2E is a view of an example of a conical object prepared by the content preparation software tool 4.

An explanation will be made of the case of preparing the content (first content) for attaching a sensor to the conical object shown in FIG. 28 and making the cone bright or dark (turning ON/OFF the light) in accordance with pointing to the sensor as a first specific example of preparation of content of three-dimensional virtual space (VRML content) using the content preparation software tool 4.

The VRML content is prepared by the process illustrated in FIG. 29. That is,

S401: Preparing the graphic data [arranging the geometry node of the object {geometry node (cone)}]

S402: Adding the sensor [arranging the sensor node (TouchSensor)

S403: Attaching a light node [arranging a node prescribed by VRML {common node (PointLight)}

S404: Naming the node being routed

S405: Setting the route

S406: Confirming the operation

Details of the process will be explained below:

S401: Preparation of Graphic Data [Arrangement of Geometry Node (Cone)]

The user arranges the object in the three-dimensional virtual space (world) to construct the entire setup. The object which can be arranged in the three-dimensional virtual space as the object by using the content preparation software tool 4 is provided by for example a basic node of VRML 2.0 or library window.

It is also possible for the content preparation software tool 4 to read the graphic data of an object prepared by other modeling software by converting this to a file format compatible with VRML 2.0.

When the user activates the content preparation software tool 4, the graphical user interface (GUI) 40 displays the GUI menu screen shown in FIG. 9 on the display device 24. When the user selects the item of “File/New” in “Conductor” window by using the mouse 262 etc., the model editing tool 420 of the content preparation software tool 4 newly prepares an empty world.

The user performs the work for placing the conical object (cone) in the prepared empty world. When the user selects “Cone” from the “Geometry” tab of the “Conductor” window and clicks on the window for the graphic data preparation (hereinafter described as the “3D View” window), the model editing tool 420 of the editing tool 42 prepares the graphic data of the object (cone) and displays the conical shape (cone) shown in FIG. 28 in the “3D View” window. Note that, at this time, it is also possible for the user to use the attention function of the content preparation software tool 4 to display the image visible when moving the periphery of the object (cone) in the three-dimensional virtual space in the “3D View” window and confirm the shape of the object (cone).

S402: Addition of Sensor [Arrangement of Sensor Node (TouchSensor)]

In order to add motion to the object in the three-dimensional virtual space or make this react with the operation of the user, it is necessary to add a sensor to the object, detect a constant condition for the operation of the user with respect to the object, and transmit the change thereof as the event to the other nodes.

Below, this will be explained by taking as an example the addition of the touch sensor (TouchSensor) for detecting a pointing operation by the mouse 262 with respect to the object.

The sensor is added to the object by placing the object in the selection state and then generating the sensor (TouchSensor).

(1) First, when the user clicks on the object (cone) in the “3D View” window, the model editing tool 420 selects the clicked object and makes the bounding box surrounding the selected object blink.

(2) Further, when the user clicks on the “Sensor” tab of the “Conductor” window, selects the touch sensor (TouchSensor) located at the rightmost side of the “Sensor” tab, and clicks on the “3D View” window, the model editing tool 420 adds the touch sensor to the object and adds the data thereof to the graphic data of the object. Note that, at this stage, as mentioned above, it is also possible for the user to use the keyboard 260 or the mouse 262 to modify the range of the valid region of the sensor (TouchSensor).

FIG. 30 is a view of the “Scene Graph” window in the menu screen.

The scene graph editing tool 424 modifies the content of the display of the “Scene Graph” window in the menu screen as shown in FIG. 30 in accordance with the addition of the touch sensor to the object. The user can confirm that the touch sensor (TouchSensor) was added to the object, in this example a cone, by referring to the “Scene Graph” window shown in FIG. 30.

This example shows a case of adding a sensor (TouchSensor) to a simple object such as a cone, but it is also possible to add a sensor (TouchSensor) to a more complex object than a cone by a similar operation of the user.

S403: Addition of Common Node (PointLight)

In VRML 2.0, the operation is described by the flow of transmitting the event detected by the sensor (sensor node) to another node and having the node receiving the event modify its state.

Below, this will be explained by taking as an example a case when a common node (PointLight) for making the light blink is added as the node receiving the event.

The common node (PointLight) lies in the “Common” tab of the “Conductor” window. However, when producing a light at the same position as the object while maintaining the illustrated display as it is, it becomes invisible, therefore it is necessary to move the viewpoint in advance.

When the user makes the “3D View” window active and for example depresses a down arrow key ↓ of the keyboard 260, the model editing tool 420 displays the object seen from the position of a slightly away from the viewpoint in the “3D View” window. When selecting the common node (PointLight) in this state, the model editing tool 420 displays the object (cone) brightly as shown in FIG. 31.

S404: Naming of Node to be Routed

Next, the user carries out routing between nodes, for example, establishes correspondence from the sensor (TouchSensor) to the common node (PointLight).

The “routing” means the connection of the two for transmitting the event among nodes, for example, from the sensor to the script.

In order to perform this routing, it is necessary to first add a name (DEF name) to the sensor.

FIG. 32 and FIG. 33 are views of the work of naming the sensor node by the “Attribute” window.

The “Attribute” window is a window for modifying an attribute of the selected object. The name (DEF name) is added to the node by an operation with respect to the “Attribute” window. Here, this will be explained by taking as an example a case where the user selects the sensor (TouchSensor) from the “Scene Graph” window and adds the DEF name (TS1, PL1) in the “Attribute” window.

As shown in FIG. 32, when the user designates the position of the “DEF name” in the “Attribute” window, types “TS1” from the keyboard 260, and pushes the return key and, further, as shown in FIG. 33, selects the common node (PointLight) from the “Scene Graph” window, types “PL1”, and pushes the return key, the scene graph editing tool 424 adds the DEF names “TS1” and “PL1” to the sensor (TouchSensor) and the common node (PointLight), respectively.

Further, when the user double clicks for example the “On” field of the common node (PointLight) of the “Attribute” window, the text editor 426 turns off the initial state of the light and adds the same to the graphic data of the object.

S405: Setting of Route

FIG. 34 is a view of an example of the “Route” window used for setting the routing between nodes.

The user performs sets the routing so as to transmit the event generated in the sensor (TouchSensor; TS1) to the common node (PointLight; PL1). The content preparation software tool 4 sets the routing by the “Route” window shown in FIG. 34.

In the “Route” window illustrated in FIG. 34, the upper “NodeName” position is used for setting the node name on the output side, while the lower “NodeName” position is used for setting the node name on the input side. Since the event is to click on the sensor (TouchSensor) and then turn the light on/off, when the user sets TS1 in “NodeName” on the output side and selects “isActive” for “eventOut”, the format “SFBool” is displayed on the right side. Note that the display of “SFBool” on the right side indicates that the format of the event transferred in “isActive” is SFBool.

The user sets PL1 in “NodeName” and sets “on” in “eventIn” as the setting on the input side.

In accordance with the setting by the user, the routing editing tool 422 modifies the display of the “Route” window of the display device 24 as shown in FIG. 34

When the above setting is ended and the user depresses the “Add” button, the routing editing tool 422 establishes correspondence between the sensor (TouchSensor) and common node (PointLight) for the routing and adds the route among nodes.

S406: Confirmation of Operation

When the user depresses the “Play” button displayed on the display device 24, this is input to the graphical user interface (GUI) 40 of the content preparation software tool 4 and the operation of the VRML browser 308 is emulated by the browser emulator 460 of the content preparation software tool 4. Therefore, it is possible to confirm the VRML content at any timing during the work for preparation of the VRML content without activating the VRML browser 308.

Further, when the user depresses the “Play” button displayed on the display device 24, the normal content preparation work is returned to.

Below, the work for confirmation of the content will be explained.

When depressing the “Play” button (button with right facing triangle mark) located at the bottom left of the “Conductor” window by the mouse 262, the content preparation software tool 4 emulates the operation of the browser by the browser emulator 460 from the operation for preparation of the content (preparation mode) and then shifts to the operation for confirming the prepared content (simulation mode).

When shifting to the simulation mode, the backup manager 466 stores the states of the nodes of the VRML content at this point of time and the viewpoint of the user. The browser emulator 460 then executes the VRML content and displays the same on the display device 24. When the user depresses the object (cone) displayed in the “3D View” window by the mouse 262 while the browser emulator 460 executes and displays the VRML content, the object is displayed bright (Light ON) when depressed and the object is displayed dark (Light OFF) when not depressed.

In this way, in the simulation mode, when the user clicks on the object (cone) by the mouse 262, the sensor (TouchSensor) attached to the object detects the click and the event is generated. The generated event is transmitted to the common node (PointLight) by the setting of the routing, the common node (PointLight) changes the state, the object is turned ON, the event is generated by the similar flow even at the end of the click, and the common node (PointLight) turns off the light of the object.

Further, when the user depresses the “Stop” button (button with square mark) of the “Conductor” window by the mouse 262, the content preparation software tool 4 returns to the usual content preparation mode.

When returning to the VRML content preparation mode, the backup manager 466 returns the state of the content to the stored initial state at the point of time when it enters into the simulation mode and further returns the viewpoint of the user to the position at the point of time when it enters into the simulation mode. The model editing tool 420 displays the graphic data of the initial state in the “3D View” window.

Storage of Prepared VRML Content

When storing the file, when the use r designates the file name by the “File/Save As” menu of the menu screen, the file input/output unit 462 records the file of the VRML content stored in the scene graph data base 44 in an external recording medium 28 via the hard disk drive 214 or the floppy disk drive 216 and the MO disk drive device 218. It is also possible for the user to open and view the file of the recorded content by the browser 308.

As explained above, it will be understood that, when preparing and confirming simple content for displaying the conical object b right or displaying it dark in accordance with a click by the mouse 262, it is possible to add the graphic data of the object, add a sensor, and add the routing by an interactive operation by the graphical user interface 40 without programming by input of a complex character train command.

Preparation of Complex Content

Below, an explanation will be made of the case of preparing VRML content (second content) changing the color of the object when the mouse cursor comes over the object as a second specific example of preparation of content of three-dimensional virtual space (VRML content) using the content preparation software tool 4.

The above VRML content was comprised to transmit an event generated by a sensor (TouchSensor) attached to the object to another node [common node (PointLight)], but in VRML 2.0, script is interposed between the sensor and the other node and further complex motion can be realized.

For example, in order to realize the second content by VRML 2.0, the color of the object (cone) is designated by the material attribute. This material attribute includes a plurality of fields. By setting diffuse color as the material attribute, the color of the object can be changed. In such a case, it is necessary to set the material attribute “diffuse color” in accordance with the generation of the event. In such a case, diffuseColor can be set by interposing the script.

The work of preparing the second content becomes the routine illustrated in FIG. 35. That is,

S411: Preparing the graphic data [arranging the geometry node (cone)]

S412: Adding a sensor [arranging a sensor node (TouchSensor)]

S413: Naming the node to be routed

S414: Preparing the script

S415: Describing a program corresponding to the script (only debug code)

S416: Setting a route to the script

S417: Confirming the operation

S418: Describing a program corresponding to the script (setting the color)

S419: Setting the route to the material node

S420: Confirming the operation

Note that, the operation of steps 411 and 412 is the same as the operation of steps 201 and 202 described with reference to FIG. 29, so the explanation will be omitted.

Below, the work of the preparation of the second content will be explained.

S413: Naming Node to be Routed

In VRML 2.0, in order to perform the routing, it is first necessary to add names. In the preparation of the first content, as mentioned above, names (TS1 and PL1) were added to the sensor (TouchSensor) and common node (PointLight). In the preparation of the second content, it is necessary to further name the material attribute.

FIG. 36 is a view of the “Appearance” window in the menu screen.

In VRML 2.0, the material attribute is contained in the appearance node for setting an attribute such as the color added to the object and the bit map data. In the content preparation software tool 4, the “Appearance” window of the menu screen is used for the editing of the appearance (including material, texture, etc.) of the graphic data of the object selected in the “3D View” window.

When giving a name to the material attribute of the object, the user first clicks on and selects the object by the mouse 262, selects the “Material” tab of the “Appearance” window shown in FIG. 36, and gives a name, for example, “CONE1_MAT”.

S414: Preparation of Script Node

In VRML 2.0, there is a node for interfacing with the script program referred to as a script node. This script node is contained in the VRML file and enables the description of a complex operation by using a script described by for example the Java language. However, the script node has an interface function, so has a close relationship with the opposing script for the interfacing and further enables definition of a plurality of inputs/outputs, therefore it becomes difficult for the user to understand this.

For this reason, in the content preparation software tool 4, there is a function referred to as a “Script Expert” for simplifying the description of the script.

According to the “Script Expert” function, by defining the input/output of the script, the template of the script program can be automatically generated and further also the input/output field can be edited by using the “Attribute” window.

FIG. 37 and FIG. 38 are views of an example of the interactive operation for preparing the script. FIG. 38 shows the interactive operation at the time of pop-up.

When the user selects “Script/Expert” by the mouse 262 in the menu screen of the content preparation software tool 4, the template preparation tool 428 opens the interactive operation for preparing the script shown in FIG. 37 and FIG. 38.

In this interactive operation, “DEF” of the uppermost position is used for naming the script node used for the routing to the VRML file of the script. The user inputs for example “SC1” to this position as the name of the script node.

“ClassName” of the position under “DEF” of the interactive operation is used for attaching a class name to the script of the Java language. The user attaches for example the temporary name “SC1” to the script.

Further, the user defines the input/output of the script node at the further lower position in the interactive operation. In the preparation of the second content, the event generated by the sensor (TouchSensor) is input to the script, therefore the user changes “DataType” on the “eventIn” side from the sensor (TouchSensor) to “SFBool” compatible with the format when transferring the event from the sensor (TouchSensor) and changes “field name” to “inBool”.

The output of the sensor is transferred to the script for controlling the color of the material, therefore the user changes “DataType” on the “eventOut” side to “SFColor” and changes “field name” to “outColor”.

The substance of the display of the interactive operation at the point of time when the user ends the set-up necessary for the preparation of the script node is as shown in FIG. 37.

Further, when the user depresses the “OK” button at the bottom portion in the interactive operation shown in FIG. 37 by the mouse 262, the template preparation tool 428 prepares the script node and prepares the template of the script corresponding to the script node.

S415: Description of Debug Code

The content preparation software tool 4 further has a function of supporting and executing the description of the script by the Java language. That is, the template preparation tool 428 prepares the template of the program corresponding to the script node, outputs the same to the text editor 426, and supports the description of the script by the user. When using the content preparation software tool 4, the user can prepare the script by just editing and making modifications to the template prepared by the template preparation tool 428 by using the text editor 426, therefore the trouble required for the preparation of source program of the script may be made very small.

Further, the user can use the Java compiler 474 to compile the script program prepared by the template preparation tool 428 and the text editor 426. Accordingly, the trouble of stopping the content preparation software tool 4 and activating the compiler for the Java language whenever the source program of the script is prepared becomes unnecessary.

By the work up to this point of time, the newly defined template of the script is prepared and the editing of the script becomes possible. However, the template prepared by the template preparation tool 428 is only defined by the basic part of the input/output at this point of time and does not contain a program for actually realizing the event. Further, it is also possible for the user to edit the template by using the text editor 426 by the script description support and execution function to immediately prepare the script for modifying the color of the object, but it is desirable to confirm whether or not the prepared template actually operates by the debug code before this.

FIG. 39 is a view of the screen of the editor displayed by the text editor 426.

In accordance with the operation of the user, the text editor 426 displays the template prepared by the template preparation tool 428 in the window for text editing of the display device 24 shown in FIG. 39.

As shown in FIG. 39, the field name on the output side defined in the work heretofore is defined as the private variable (part of private SFColor m_outColor). In the initialize() method, the code for initializing this variable is embedded. A method such as _inBoolCB() is called up when there is an input event. A program operated by the input from the sensor (TouchSensor) is described in this method [_inBoolCB()].

For example, when the code for viewing the value of the input from the sensor is added to the template, the following debug code is added to the _inBoolCB() method.

Table 1

System.out.printIn(“_inBoolCB() called: ”+ev.getValue());

When this debug code is added and the user clicks on the right button and selects “Compile” from the pop-up menu, the Java compiler 474 is activated, the templates (source programs of scripts) to which the debug code was added are compiled, and the message in the compilation is displayed at the lower part of the editor.

Note that, when the user depresses the “Play” button for confirmation of operation, the Java compiler 474 automatically compiles the source programs of the prepared script to prepare the object program, and the browser emulator 460 executes the automatically prepared object program. Note, in this case, if an error is generated during the compilation, the browser emulator 460 does not execute the VRML content.

When the compilation normally ends, the Java compiler 474 displays the word “Finished” on the screen of the editor. When the compilation abnormally ends, a compilation error is displayed. When a compilation error is displayed, the user uses the text editor 426 to confirm again whether or not there is a typing error and amend the program (template), then executes the compilation again, whereby the error can be eliminated.

At the time of the debugging by the Java debugger 472, the data indicated by the debug code is displayed in the “Route” window, therefore, in this case, the user can understand the value of the data input from the sensor at the time of execution of the script.

FIG. 40 is a view of an example of the script “Attribute” window able to be used for the editing of the “eventIn” and “eventOut” of the script node. Note that, for the editing of “eventIn” and “eventOut of the script node, the “Script Attribute” window shown in FIG. 40 is used.

When “eventIn” or “eventOut of the “Attribute” window of the menu screen is depressed in a state where the user selects the script node, the “Script Attribute” window shown in FIG. 40 opens.

When the “format” and “name” are set in the input field of the “Script Attribute” window and the “Add” button is depressed by the mouse 262, the text editor 426 adds a field to the script and further modifies the script node in the scene graph data base 44.

Further, when the user displays the input/output attribute of the script in a table in the “Script Attribute” window, designates a field, and depresses the “Delete” button by the mouse 262, the text editor 426 erases the description of the field from the script.

Further, when modifying the “format” and “name” of the field of the script, the field of the script is erased once, then they are newly added.

When the script node is modified by the above operation, the text editor 426 automatically modifies the source program of the script so as to be compatible with the state after modification.

A concrete example of the automatic modification of a source program will be given next.

For example, when the user displays the “eventOut” side in the “Script Attribute” window shown in FIG. 40, designates the “TypeName” side as “SFBool”, designates the “EventName” side as “outColor”, and depresses the “Delete” button, the text editor 426 automatically erases the 10th row of the script shown in FIG. 39 (private SFColor m_outColor;) to reflect the modification.

S416: Setting of Route to Script Node

FIG. 41 is a view of an example of the content of the “Route” window.

As mentioned above, in order to make the script operate, routing is necessary. In the second script, in the “Route” window shown in FIG. 41, the event generated by the sensor (TouchSensor) is routed to the script node, and the color of the object (cone) is modified.

FIG. 42 is a view of the substance of the “Java Console” window displayed by the browser emulator 460.

When the cursor of the mouse 262 passes through the object (cone), if the routing is per formed making the event generated by the sensor (TouchSensor) “isOver” and the field of the script node receiving the event “inBool” designated by using the “Script Expert” function, the Java debugger 472 displays for example a message of the content shown in FIG. 43 in the “Java Console” window.

S417: Confirmation of Operation

In the work of describing the debug code of step 415 (S415), the debug code is added to the script, therefore when the message shown in FIG. 43 is displayed in the “Java Console” window, the user can confirm whether or not the script operates without error. Further, in order to confirm the operation of the second content, the user may depress the “Play” button of the display device 24 in the same way as at the time of confirmation of operation of the first content.

Further, when there is a necessity for displaying the value of the output of the script, when the user selects the “View/Java Console” menu of the menu screen, the browser emulator 460 displays the “Java Console” window shown in FIG. 43.

Further, when the user depresses the “Play” button of the menu of the display device 24, the browser emulator 460 emulates the operation of the VRML browser 308 and displays the object (image) of the three-dimensional virtual space indicated by the VRML content in the “3D View” window. Further, when the user moves the cursor in the “3D View” window to the object by the mouse 262, as shown in FIG. 41, the Java debugger 472 displays the message “true” in the “Java Console” window, while when the user moves the cursor away from the object, the message “false” is displayed.

The substance of the display of the “Java Console” window shown in FIG. 43 shows that, when the cursor of the mouse 262 comes to the object, the sensor (TouchSensor) attached to the object detects this state and generates an event, this is transmitted to the script node, and the script node receives the event. The display in the “Java Console” window is carried out by the execution of system.out.printIn() in the method.

Note that, even in a case when the cursor of the mouse 262 is moved away from the object, the event is similarly transmitted and the result of the operation is displayed in the “Java Console” window.

When the user debugs the script, as mentioned above, it can confirmed whether or not the event is being normally transmitted to the script by adding the debug code to the script.

S418: Description of Program Corresponding to Script

FIG. 44 is a view of an example of the script obtained by adding code s for changing th e color of the object (cone).

The color of the object is modified by writing a value in the field of the output side of the script shown in FIG. 44 (variable name “m_outColor”) and routing to the material attribute. In order to add codes for changing the color of the object to the script, the following codes are added to the method [_inBoolCB()].

Table 2

float r[]=(1.0f, 0.0f, 0.0f);

float g[]=(0.0f, 1.0f, 0.0f);

if (ev.getValue()) m_outColor.setValue (r);

else m_outColor.setValue(g);

By the addition of these codes, in the emulation operation by the browser emulator 460, when the cursor of the mouse 262 enters the object, ev.getvalue() of the code becomes “true” and red is output from the script (SC1), while when the cursor leaves it, ev.getvalue() of the code becomes “false” and green is output from the script.

S419: Setting of Route to Material Node

In order to actually change the color of the object (cone), it is necessary to perform routing from the script node to the material attribute.

FIG. 36 is a view of the substance of the display of the case when “outColor” of the script program (SC1) is routed to “diffuseColor” of the material attribute (CONE1_MAT) in the “Route” window.

When the user routes “outColor” of the script node (SC1) to “diffuseColor” of CONE1_MAT in the “Route” window, the flow of the event of the propagation of the event from the sensor (TouchSensor) to the script (SC1) together with the routing set heretofore and further the propagation of the event from the script node to the material attribute (CONE1_MAT) is completed.

When the above work is ended, if the user depresses the “Play” button of the “Conductor” window and moves the cursor of the mouse 262 onto the object (cone), the color of the object becomes red, while when it moves the cursor away from the object, the color of the object becomes green.

In the same way as when confirming the operation of the first content, the backup manager 466 holds the initial state of the content and the viewpoint of the user at the start of the confirmation of the operation. When the user depresses the “Stop” button and the operation of the browser emulator 460 is ended, the model editing tool 420 restores and displays the content of the initial state held in the backup manager 466 in the “3D View” window in a state when it is seen from the viewpoint of the user at the start of the confirmation of the operation.

For example, when the substance of the display of the initial state of the VRML content at the start of the confirmation of the operation is as shown in FIG. 28 and the substance of the display of the content at the end of the confirmation of operation is as shown in FIG. 31, the model editing tool 420 returns the display of the object (cone) in the “3D View” window to the content shown in FIG. 28 based on the initial state held by the backup manager 466.

The operation of the content in the confirmation of operation explained here is as follows.

When the cursor moves to the object, the sensor (TouchSensor) attached to the object detects this and the event is generated. The generated event is transmitted to the script node by the setting of the routing, and the script node executes the method. During the method, when receiving the input event (true), red is set in the output field, the color written in the output field is set for the material attribute of the object (cone) by the routing, and the color of the object (cone) in the three-dimensional virtual space becomes red. Similarly, when the cursor is moved away from the object (cone), the event (false) is transmitted from the sensor (TouchSensor) to the script node, and the method sets green in the field of output and changes the object (cone) to the green color.

Clicking of Object (Cone) to Make Sound

An explanation will now be made of the case of preparing a VRML content (third content) of producing a sound when clicking on the object (cone) by the mouse 262 as a third specific example of preparation of the content of three-dimensional virtual space (VRML content) using the content preparation software tool 4.

Below, an explanation will be made of the work for preparation of the third content.

In VRML 2.0, it is possible to use a sound node to output a sound., The content preparation software tool 4 has the function of dragging and dropping a sound node from the sound library to add the sound node to the world.

The work for preparing the third content is carried out by the following process illustrated in FIG. 45:

S431: Preparing the graphic data of the object (cone) [arranging the geometry node (cone)]

S432: Adding a sensor [arranging a sensor node (TouchSensor)]

S433: Arranging a sound node

S434: Confirming the operation

S435: Setting and routing the AudioClip node

S436: Confirming the operation

The operation of step 431 and step 432 is the same as with preparation of the first content and preparation of the second content, so the explanation will be omitted. Here, a name “TS1” is attached to the sensor (TouchSensor). Next, the operation of the default of the sound node is confirmed, the modification of the attribute and routing are carried out, and the sound is confirmed by clicking on the object.

S433: Arrangement of Sound Node

FIG. 465 is a view of the “Scene Graph” window and the “Attribute” window when arranging the sound node.

In VRML, to output a sound, it is necessary to arrange a sound node. The content preparation software tool 4 is constituted so as to add a sound node by the user clicking on the first “Sound” tab of the “Resource Library” window shown in FIG. 9 by the mouse 262 to open the sound library and dropping a sound node from the sound library.

First, the user views the “3D View” window and confirms that nothing has been selected. When a certain object is selected, the user selects “Unselect” by the pop-up menu of the “Scene Graph” window shown in FIG. 46 to instruct the release of the selection to the model editing tool 4210.

Further, the user confirms that the object (cone) is visible in the “3D View” window. When it selects “Classic” from the sound library of the “ResourceLibrary” window and drops this into the “3D View” window, the model editing tool 420 adds the sound node to the graphic data of the object.

When the user clicks on the tree displayed in the “Scene Graph” window, the scene graph editing tool 424 displays the content shown in FIG. 47 and indicates to the user that the sound node has been added.

In the sound node, it is possible to designate the region of the sound by a “maxBack”, “maxFront”, or other field. Note that, in the default state when dropped from the library, “maxBack”=“maxFront”=10 is set so that the sound is output when the cursor of the mouse 262 enters the region.

S434: Confirmation of Operation

The user can confirm the sound node by depressing the “Play” button. In the content preparation software tool 4, the cursor of the mouse 262 is set to already enter the region of the sound immediately after the sound node is dropped, therefore when the user depresses the “Play” button, the set sound (classic music in this example) is output.

Further, in the content preparation software tool 4, the “spatialize” field of the sound node is set to “TRUE” in the default state. When moving (navigating) in the three-dimensional virtual space by using the mouse 262 in the “3D View” window, the magnitude of the sound and the left and right pans change in accordance with the position of the cursor of the mouse 262.

Next, when the user depresses the “Stop” button of the display device 24 to return to the preparation mode and selects “Sound” in the “Scene Graph” window, the model editing tool 420 displays a blinking bounding box showing the region where the sensor (TouchSensor) generates the event outputting the sound around the object (cone) shown in the “3D View” window on the left side and the “ParallelView” window on the right side as shown in FIG. 47, so the user can visually confirm the region of the sound.

Further, when the user selects “Parallel View/Tip View” from the pop-up menu of the “3D View” window, the model editing tool 420 three-dimensionally displays the image of the object (cone) from the front surface in the “3D View” window on the left side of FIG. 47 and two-dimensionally displays the image of the object (cone) seen from above in the “ParallelView” window on the right side.

When the user moves the viewpoint so as to see the whole object and bounding box in the “ParallelView” window shown in FIG. 48, if it depresses the shift key of the keyboard 260 and the left button of the mouse 262 (not illustrated) and drags the “ParallelView” window in the downward direction, the model editing tool 420 displays the image of the object from a far away viewpoint in the “ParallelView” window.

When the user pushes the “Play” button and then moves the cursor of the mouse 262 in the “3D View” window, a sound is output when the cursor enters the region indicated by the bounding box shown in FIG. 46. The output of the sound is stopped when the cursor leaves this region.

FIG. 48 is a view of an example of modification of the size of the region for outputting the sound shown in FIG. 47.

In the content preparation software tool 4, it is possible to numerically designate the region indicated by the bounding box in the “Attribute” window or switching the mouse mode on the menu screen shown in FIG. 9, as shown in FIG. 47, so as to move, rotate, and scale this region by using the mouse.

S435: Setting and Routing of AudioClip Node

When adding the sound node by the above work, the sound is automatically output when the cursor of the mouse 262 enters into the region of sound indicated by the bounding box in FIG. 34 and FIG. 35. This is related to the setting of “startTime”=0, “stopTime”=0, and “loop”=“TRUE” of the AudioClip node attached to the sound node.

In VRML 2.0, “startTime” of the AudioClip node represents the start time and outputs sound in the case of “startTime ”>=“stopTime”. Further, it is also possible to repeatedly output the sound by setting “loop”=“TRUE”. Further, in FIG. 47 and FIG. 48, when modification is made so as not to give off a sound until the region indicated by the bounding box is clicked by the mouse 262, “startTime”=−1 is set. Further, in order to stop the output of the sound when the region indicated by the bounding box is clicked, the clicked time is assigned for “startTime”.

FIG. 49 is a view of an example of the modification of AudioClip node and the routing from the sensor (TouchSensor) to the AudioClip node.

For example, in order to set the stopping of the output of the sound when the region defined by the bounding box is clicked, as shown in FIG. 48, the user must select the first “AudioClip” tab of the “ResourceLibrary” window, attach a name “AC1” to the AudioClip node, and further perform the routing from “touchTime” of the sensor (TouchSensor;TS1) to “startTime” of the AudioClip node in the “Route” window.

S436: Confirmation of Operation

When the user depresses the “Play” button by the mouse 262 and clicks the object (cone) displayed in the “3D View” window, the output of the sound is started by the browser emulator 460.

The operation of the third content is as follows.

When the user clicks on the object (cone) in the “3D View” window by the mouse 262, the event “touchTime” is generated from t he sensor (TouchSensor) attached to the object. In this event, the clicked time (in VRML 2.0, the relative time from 00:00:00 GMT Jan. 1, 1970) is transferred to “startTime” of AudioClip, “startTime” is set, and the output of the sound is commenced. Note that, in this example, the loop field of the AudioClip node is set to “TRUE”, therefore the sound (music) is repeatedly reproduced and output.

With this setup, the output of the sound cannot be stopped unless the cursor is moved to the outside of the region of the sound, therefore when stopping the output of the sound, the user must use the text editor 426 etc. to modify the program so as to stop the output of the sound under predetermined conditions.

Note that, in the embodiment, the explanation was given by taking as an example the case of preparing the graphic data of a conical object, attaching a touch sensor to the graphic data, and modifying the common node (light) or color or outputting a sound, but the content preparation software tool 4 of the present embodiment is not limited to this. Needless to say the VRML content can be prepared by using all nodes supported by VRML 2.0.

Further, the content preparation software tool 4 can handle languages for describing three-dimensional virtual space other than VRML by suitable modification.

Effect of the Invention

According to the present invention, it becomes possible to prepare a template of script by an interactive operation using a Script Expert and automatically compile a script, and the portion connecting the Java language and VRML also becomes easy. As a result, there is no need to input a character string of commands (command line) for preparing the script. Further, it is possible to greatly shorten the time for the user to prepare content in the three-dimensional virtual space by VRML 2.0.

Further, according to the present invention, the following effects are obtained.

According to the graphic data generating apparatus, graphic data generation method, and medium of the same of the present invention, it is possible to comprehensively perform work such as the preparation of graphic data showing the shape of a graphic of an object in virtual space, the position in a three-dimensional space, etc., program an event (script) in the virtual space, and establish correspondence between the pointing to an object and the activation of a script (routing).

Further, according to the graphic data generating apparatus, graphic data generation method, and medium of the same of the present invention, the model, script, routing, and other result of work can be immediately confirmed.

Further, according to the graphic data generating apparatus, graphic data generation method, and medium of the same of the present invention, the preparation of software enabling operations in the three-dimensional virtual space to be performed by an interactive manner is made easy.

Further, according to the graphic data generating apparatus, graphic data generation method, and medium of the same of the present invention, the shape of a three-dimensional object displayed in the virtual space can be correctly grasped by a two-dimensional screen display.

Further, according to the graphic data generating apparatus, graphic data generation method, and medium of the same of the present invention, it is possible to visually easily set the range of the valid region of a sensor generating an event in accordance with an operation with respect to the object and to confirm the valid region of the set sensor and it is easy to confirm the operation of the event generated in accordance with an operation with respect to the sensor.

INDUSTRIAL APPLICABILITY

The graphic data generating apparatus, graphic data generation method, and medium of same of the present invention can be used widely as authoring tools for content in a three-dimensional graphic description language expressing an object in a three-dimensional virtual space.

LIST OF REFERENCES

1 . . . net work system

10 . . . in house net work

100 . . . hard disk drive

102 . . . server device

12 . . . Internet system

14 . . . Internet provider

16 . . . ISDN net

2 . . . client (subscriber) system

20 . . . computer

24 . . . display device

26 . . . input device

260 . . . keyboard

262 . . . mouse

28 . . . recording medium

280 . . . floppy disk

282 . . . MO disk

4 . . . content preparation software tool

40 . . . graphical user interface unit (GUI)

42 . . . editing tool

420 . . . model editing tool

422 . . . routing editing tool

424 . . . scene graph editing tool

426 . . . text editor

44 . . . scene graph data base

46 . . . working tool

460 . . . browser emulator

462 . . . file input/output unit

464 . . . file scope management unit

466 . . . backup manager

47 . . . script preparation unit

470 . . . Java emulator

472 . . . Java debugger

474 . . . Java compiler 

What is claimed is:
 1. A method for editing data used in creating a three-dimensional virtual reality environment, which data comprise model data for describing nodes and a script for controlling events to be transferred between nodes, the method comprising the steps of: providing a graphical user interface for displaying and editing data in response to operation instructions from a user; inputting script preparation data and model data comprising node data, event data and routing data; preparing a source program for the script in response to an operation instruction for editing the script from the user on the graphical user interface, which script controls an interaction between nodes of the model data; editing the routing data according to an operation instruction from the user to establish a correspondence among node data, event data and the prepared script; confirming the foregoing editing operations in response to an operation instruction from the user, wherein the confirming step comprises: automatically compiling a source program of said prepared script and thereby preparing an object program of said script; displaying an object described by the model data; and executing the object program with respect to the displayed object.
 2. A method as set forth in claim 1, wherein the source program preparation step further comprises the steps of: setting input and output values of the script; preparing a template of a source program of the script compatible with the set values of the input and output of the script; and editing the template of the source program of the script to prepare a source program of a desired script according to operation instructions from the user.
 3. A method as set forth in claim 2, wherein the source program preparation step further comprises a step of automatically modifying the edited source program so as to be compatible with the set values of the input and output of the script.
 4. An apparatus for editing data used in creating a three-dimensional virtual reality environment, which data comprise model data for describing nodes and a script for controlling events to be transferred between nodes, the apparatus comprising: means for inputting script preparation data and model data comprising node data, event data and routing data; means for providing a graphical user interface for displaying and editing data in response to operation instructions from a user in a window of a screen of a display device; operation instruction means, linked with the display device, for enabling an interactive operation between the information displayed on the display device and a user; source program preparing means for preparing a source program for the script in response to an operation instruction for editing the script from the user on the graphical user interface, which script controls an interaction between nodes of the model data; means for editing the routing data according to an operation instruction from the user to establish a correspondence among node data, event data and the prepared script; means for confirming the foregoing editing operations in response to an operation instruction from the operation instructing means wherein the confirming operation comprises the steps of: automatically compiling a source program of said prepared script and thereby preparing an object program of said script; displaying an object described by the model data; and executing the object program of the script with respect to the displayed object.
 5. An apparatus as set forth in claim 4, wherein the source program preparing means comprises: input-output value setting means for setting values of input and output of the script; template preparing means for preparing a template of a source program of the script compatible with the set values of the input and output of the script; and source program editing means for editing the template of the source program of the script prepared to prepare the source program of the desired script.
 6. A graphic data generating apparatus as set forth in claim 5, wherein the source program preparing means further comprises a source program modifying means for modifying the edited source program so as to be compatible with the set values of the input and output of the script.
 7. A program for editing data used in creating a three-dimensional virtual reality environment, which data comprise model data for describing nodes and a script for controlling events to be transferred between nodes, wherein the program is embodied in a recording medium and comprises the steps of: providing a graphical user interface for displaying and editing data in response to operation instructions from a user; inputting script preparation data and model data comprising node data, event data and routing data; preparing a source program for the script in response to an operation instruction for editing the script from the user on the graphical user interface, which script controls an interaction between nodes of the model data; editing the routing data according to an operation instruction from the user to establish a correspondence among node data, event data and the prepared script; confirming the foregoing editing operations in response to an operation instruction from the user, wherein the confirming step comprises: automatically compiling a source program of said prepared script and thereby preparing an object program of said script; displaying an object described by the model data; and executing the object program with respect to the displayed object.
 8. A program as set forth in claim 7, further comprising the steps of: setting values of input and output of script; preparing a template of a source program of the script compatible with the set values of the input and output of the script; and editing the template to prepare the source program of a desired script, according to instructions from the user.
 9. A program as set forth in claim 8, wherein the source program preparation step comprises a step of modifying the edited source program so as to be compatible with the set values of the input and output of the script.
 10. A program as set forth in 7, 8 or 9, wherein the medium for providing the program is in a computer system.
 11. A program as set forth in 7, 8 or 9, wherein the program is transmitted over a network system.
 12. The method of claim 1, wherein the source program preparation step further comprises the step of automatically adding, deleting or modifying variables associated with the script, according to the operation instructions from the user for editing the script.
 13. The method of claim 1, wherein the source program preparation step further comprises the steps of: debugging the script; and generating an error report.
 14. The method of claim 1, wherein the step of editing the routing data further comprises constraining data for an event to be routed such that only node names and field names compatible with the event may be selected by the user.
 15. The method of claim 1, wherein the confirming step further comprises a step of storing field values of nodes prior to executing the object program.
 16. The method of claim 1, wherein the confirming step further comprises the steps of: receiving an operation instruction from the user regarding the displayed object while the object program is being executed; and storing field values of nodes expressing the displayed object.
 17. The apparatus of claim 4, wherein the source program preparation means further comprises means for automatically adding, deleting or modifying variables associated with the script, according to the operation instructions from the user for editing the script.
 18. The apparatus of claim 4, wherein the source program preparation means further comprises: means for debugging the script; and means for generating an error report.
 19. The apparatus of claim 4, wherein the means for editing the routing data comprises means for constraining data for an event to be routed such that only node names and field names compatible with the event may be selected by the user.
 20. The apparatus of claim 4, wherein the means for confirming further comprises means for storing field values of nodes prior to executing the object program.
 21. The apparatus of claim 4, wherein the means for confirming further comprises means for storing field values of the nodes expressing the displayed object while the object program is being executed, in response to an operation instruction from the user regarding the displayed object.
 22. The program as set forth in claim 7, wherein the source program preparation step of the program further comprises the step of automatically adding, deleting or modifying variables associated with the script, according to the operation instructions from the user for editing the script.
 23. The program as set forth in claim 7, wherein the source program preparation step of the program further comprises the steps of: debugging the script; and generating an error report.
 24. The program as set forth in claim 7, wherein the step of editing the routing data in the program further comprises constraining data for an event to be routed such that only node names and field names compatible with the event may be selected by the user.
 25. The program as se t forth in claim 9, wherein the confirming step of the program further comprises a step of storing field values of nodes prior to executing the object program.
 26. The program as set forth in claim 7, wherein the confirming step of the program further comprises the steps of: receiving an operation instruction from the user regarding the displayed object while the object program is being executed; and storing the field values of the nodes expressing the displayed object.
 27. A n apparatus for editing data used in creating a three-dimensional virtual reality environment, which data comprise model data for describing nodes and a script for controlling events to be transferred between nodes, the apparatus comprising: a data input device for inputting script preparation data and model data comprising node data, event data and routing data; a display device comprising a graphical user interface for displaying and editing data in response to operation instructions from a user; a user input device linked with the display device, for enabling a user to provide operation instructions and thereby interact with information displayed in the graphical user interface; a text editor for preparing a source program for the script in response to an operation instruction for editing the script from the user on the graphical user interface, which script controls an interaction between nodes of the model data; a routing editing tool for editing the routing data according to an operation instruction from the user to establish a correspondence among node data, event data and the prepared script; a script preparation unit for confirming the foregoing editing operations in response to an operation instruction from the user, wherein the confirming operation comprises the steps of: automatically compiling a source program of said prepared script and thereby preparing an object program of said script; displaying an object described by the model data on the display device; and executing the object program of the script with respect to the displayed object.
 28. An apparatus as set forth in claim 27, wherein the text editor further comprises a template preparation tool for preparing a template of a source program of the script compatible with input and output values for the script which are set according to operation instructions from the user.
 29. A graphic data generating apparatus as set forth in claim 28, wherein the text editor automatically modifies an edited source program template so as to be compatible with the set values of the input and output of the script.
 30. The apparatus of claim 27, wherein the text editor automatically adds, deletes or modifies variables associated with the script, according to the operation instructions from the user for editing the script.
 31. The apparatus of claim 27, wherein the script preparation unit further comprises: means for debugging the script; and means for generating an error report.
 32. The apparatus of claim 27, wherein the routing editing tool comprises means for constraining data for an event to be routed such that only node names and field names compatible with the event may be selected by the user.
 33. The apparatus of claim 27, further comprising a backup manager for storing field values of nodes prior to executing the object program.
 34. The apparatus of claim 31, wherein the backup manager stores field values of the nodes expressing the displayed object while the object program is being executed, in response to an operation instruction from the user regarding the displayed object. 